<template>
    <div class="header">

        <!--S打开红包列表页面-->
        <div id="go-list">
            <router-link to="home/list">
                <svg><use xlink:href="#icon-liebiao"></use></svg>
            </router-link>
        </div>
        <!--E打开红包列表页面-->

        <!--S红包剩余数量-->
        <div id="number">
            <svg><use xlink:href="#icon-hongbaolishi"></use></svg>
            <span>{{number.numbered}} / {{number.number}}</span>
        </div>
        <!--E红包剩余数量-->

    </div>
</template>

<script>
export default {
    name: "i-header",
    props: {
        number: {
            type: Object,
            default() {
                return {number:0,numbered:0}
            }
        }
    }
}
</script>

<style lang="less" scoped src="./header.less"></style>
